<?php

use Dcat\Admin\Admin;
use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;

Admin::routes();

Route::group([
    'prefix' => config('admin.route.prefix'),
    'namespace' => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/dashboard', 'HomeController@index');
    $router->resource('engineering', 'EngineeringController');
    $router->resource('company', 'CompanyController');
    $router->resource('team', 'TeamController');
    $router->resource('project', 'ProjectController');


    $router->resource('work_user', 'NormalWorkUserController');
    $router->resource('work_user_history', 'WorkUserHistoryController');
    $router->resource('resign_work_user', 'ResignWorkUserController');
    $router->resource('misdeed_work_user', 'MisdeedWorkUserController');

    $router->resource('work_user_statistics', 'WorkUserStatisticsController');
    $router->resource('work_user_statistics_moon', 'WorkUserStatisticsMoonController');

    $router->get('misdeed_list', 'MisdeedWorkUserController@misdeed_list');


    $router->resource('project_closure_user', 'ClosureWorkUserController');

    $router->resource('kaoqin_log', 'KaoqinLogController');
    $router->resource('device_list', 'DeviceListController');
    $router->resource('type_work', 'TypeWorkController');
    $router->resource('kao_qin_statistics', 'KaoQinStatisticsController');
    $router->resource('mao_tong_face', 'MaoTongFaceController');

    $router->resource('ziliao_categories', 'ZiliaoCategoryController');
    $router->resource('ziliao_content', 'ZiliaoContentController');
    $router->resource('ziliao_warehouse', 'ZiliaoWarehouseController');


    $router->resource('gzd_work_user', 'GzdWorkUserController');
    $router->resource('gzd_engineering', 'GzdEngineeringController');
    $router->resource('gzd_muban', 'GzdMubanController');
//    $router->get('gzd_muban_user', 'GzdMubanController@gzd_muban_user');
    $router->resource('gzd_muban_details', 'GzdMubanDetailController');
    $router->resource('gzd_kaoqinbiao_muban_details', 'GzdKaoqinbiaoMubanDetailController');

//    $router->resource('order', 'OrderController');
//    $router->resource('agentWalletLog', 'AgentWalletLogController');
//    $router->get('admin_user', 'EngineeringController@admin_user');

    $router->get('auth/login', 'AuthController@getLogin');
    $router->post('auth/login', 'AuthController@postLogin');

});

